home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
challenge
/
12.08-Aug96
/
MazeTestCode.sit
/
MazeTestCode ƒ
/
Maze.c
next >
Wrap
C/C++ Source or Header
|
1996-07-21
|
730b
|
26 lines
#include "Maze.h"
Boolean Maze(
long xPos, /* x component of initial position */
long yPos, /* y component of initial position */
long zPos, /* z component of initial position */
long xSize, /* size of maze in x dimension */
long ySize, /* size of maze in y dimension */
long zSize, /* size of maze in z dimension */
MoveProc MakeAMove, /* callback to attempt a move */
char *mapStorage /* one byte for each valid position in the maze */
)
{
long newX,newY,newZ;
Boolean solved;
/* Your code goes here */
/*
* You will need to invoke the callback something like this:
solved = (*MakeAMove)(1,0,0,&newX,&newY,&newZ);
* And when you find the exit ...
*/
return solved;
}